package org.graduation.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.graduation.model.common.ResponseResult;
import org.graduation.model.common.project.Project;
import org.graduation.model.common.project.ProjectUserTable;
import org.graduation.model.common.user.User;

import java.util.List;

public interface ProjectAndUserService extends IService<ProjectUserTable> {
    ResponseResult join(ProjectUserTable projectUserTable);

    /**
     * 获取组员列表
     *
     * @param pId
     * @return
     */
    List<User> getUsers(Long pId);

    boolean existUserInProject(Long pId, Integer uid);

    //todo 退出
}
